package com.citycloud.ccuap.tc.admin.entity;

import com.citycloud.ccuap.framework.service.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;
import org.springframework.data.mybatis.annotations.Id.GenerationType;
import org.springframework.data.repository.query.parser.Part;

/**
 * 项目（站点）和数据组关联表实体对象
 * @author zhusr
 *
 */
@Data
@NoArgsConstructor
@Entity(table = "sys_project_dg_rel")
public class SysProjectDgRel implements Model {
	private static final long serialVersionUID = 1L;

	@Id(strategy = GenerationType.UUID)
	@Column(name = "obj_id")
	@Condition(type = Part.Type.LIKE)
	private String objId;
	
	@Column(name = "project_id")
	@Condition
	private Long projectId;
	
	@Column(name = "datagroup_id")
	@Condition(type = Part.Type.LIKE)
	private String datagroupId;
	


}